﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace lcs.Web.Admin.monthsked
{
    public partial class showpic : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                if (Request.Params["id"] != null && Request.Params["id"].Trim() != "")
                {
                    
                    int mid = (Convert.ToInt32(Request.Params["id"]));
                    BLL.monthsked bll = new BLL.monthsked();
                    DataSet ds= bll.GetList(" and mid="+mid);
                    if (ds.Tables[0].Rows.Count > 0)
                        this.Title = ds.Tables[0].Rows[0]["material"].ToString() + "图片显示";
                    Image1.ImageUrl = "~/admin/monthsked/pic.ashx?id=" + mid + "&type=cy";
                    Image2.ImageUrl = "~/admin/monthsked/pic.ashx?id=" + mid + "&type=fq";

                }
            }

        }
    }
}